#使用for语句代替while循环语句，完成相同的功能。
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9]  
  
for number in numbers:    
    if number == 1:  
        suffix = 'st'  
    elif number == 2:  
        suffix = 'nd'  
    elif number == 3:  
        suffix = 'rd'  
    else:  
        suffix = 'th'  
        
    print(f"{number}{suffix}")